return {
  "rmagatti/auto-session",
  enabled = false,
  config = function()
    local auto_session = require "auto-session"

    auto_session.setup {
      auto_restore_enabled = false,
      auto_session_suppress_dirs = { "~/", "~/Dev/", "~/Downloads", "~/Documents", "~/Desktop/" },
    }

    -- restore last workspace session for current directory
    vim.keymap.set(
      "n",
      "<leader>sr",
      "<Cmd>SessionRestore<CR>",
      { noremap = true, silent = true, desc = "Restore session for cwd" }
    )

    -- save workspace session for current working directory
    vim.keymap.set(
      "n",
      "<leader>ss",
      "<Cmd>SessionSave<CR>",
      { noremap = true, silent = true, desc = "Save session for auto session root dir" }
    )
  end,
}
